/**
 * 
 */
package com.lehecai.core.lottery;

import com.lehecai.core.IntegerBeanLabelItem;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Sunshow
 * 方案创建类型
 */
public class PlanCreateType extends IntegerBeanLabelItem {

	private static final long serialVersionUID = 5854950131818565202L;

	private static final Logger logger = LoggerFactory.getLogger(PlanCreateType.class.getName());
	
	private static List<PlanCreateType> items = new ArrayList<PlanCreateType>();
	
	protected PlanCreateType(String name, int value) {
		super(PlanCreateType.class.getName(), name, value);
		items.add(this);
	}
	
	public static PlanCreateType getItem(int value){
		try {
			return (PlanCreateType)PlanCreateType.getResult(PlanCreateType.class.getName(), value);
		} catch (Exception e) {
			logger.error(e.getMessage(), e);
			return null;
		}
	}
	
	public static List<PlanCreateType> getItems() {
		return items;
	}
	
	public static final PlanCreateType ALL = new PlanCreateType("全部", -1);
	
	public static final PlanCreateType DEFAULT = new PlanCreateType("默认", 0);
	public static final PlanCreateType FILTER = new PlanCreateType("在线过滤", 1);
	public static final PlanCreateType INTELLIGENCE = new PlanCreateType("智能过滤", 2);
    public static final PlanCreateType DANTUO = new PlanCreateType("胆拖", 3);
    public static final PlanCreateType UPLOAD = new PlanCreateType("文件上传", 4);
    public static final PlanCreateType RANDOM = new PlanCreateType("随机", 5);
    public static final PlanCreateType RANDOM_LUCKY = new PlanCreateType("幸运选号", 6);
    public static final PlanCreateType RANDOM_UNIQUE = new PlanCreateType("不重复随机", 7);
    public static final PlanCreateType DANSHA = new PlanCreateType("定胆杀号", 8);
    public static final PlanCreateType SHRINK = new PlanCreateType("旋转矩阵", 9);
    public static final PlanCreateType OMISSION = new PlanCreateType("遗漏投注", 10);

    public static final PlanCreateType MIXED = new PlanCreateType("混合", 100);
	
	public static final PlanCreateType GAME_HORSE_RACING = new PlanCreateType("赛马游戏", 101);
	public static final PlanCreateType GAME_CAR_RACING = new PlanCreateType("赛车游戏", 102);
    public static final PlanCreateType GAME_SICBO = new PlanCreateType("骰宝游戏", 103);
    public static final PlanCreateType SIMULATION_DRAW_MACHINE = new PlanCreateType("模拟摇奖机", 104);

    // 第三方过滤
    public static final PlanCreateType FILTER_ZHISHENG = new PlanCreateType("智胜过滤", 401);

    public static final PlanCreateType JC_OPTIMIZE = new PlanCreateType("竞彩智能优化", 501);
    public static final PlanCreateType JC_MATCHING = new PlanCreateType("竞彩智能配对", 502);
    public static final PlanCreateType JC_DANTIAO = new PlanCreateType("竞彩单挑", 503);
    public static final PlanCreateType JC_2X1 = new PlanCreateType("竞彩2选1", 504);
    public static final PlanCreateType MIXED_PASS = new PlanCreateType("混合过关", 505);
    public static final PlanCreateType RMDC = new PlanCreateType("热门单场", 506);
    public static final PlanCreateType ZS2C1 = new PlanCreateType("制胜2串1", 507);
	public static final PlanCreateType CARD = new PlanCreateType("卡片版", 508);

    // 后上传专用
    public static final PlanCreateType UPLOAD_LATER_STANDARD = new PlanCreateType("后上传标准选号", 601);
    public static final PlanCreateType UPLOAD_LATER_FILE = new PlanCreateType("后上传文件上传", 602);
    public static final PlanCreateType UPLOAD_LATER_FILTER = new PlanCreateType("后上传在线过滤", 603);
    public static final PlanCreateType UPLOAD_LATER_INTELLIGENCE = new PlanCreateType("后上传智能过滤", 604);
    public static final PlanCreateType UPLOAD_LATER_JC_OPTIMIZE = new PlanCreateType("后上传竞彩智能优化", 605);
    public static final PlanCreateType UPLOAD_LATER_JC_MATCHING = new PlanCreateType("后上传竞彩智能配对", 606);
    public static final PlanCreateType UPLOAD_LATER_RANDOM = new PlanCreateType("后上传随机", 607);
    public static final PlanCreateType UPLOAD_LATER_DANTUO = new PlanCreateType("后上传胆拖选号", 608);
    // 后上传的第三方过滤
    public static final PlanCreateType UPLOAD_LATER_FILTER_ZHISHENG = new PlanCreateType("后上传智胜过滤", 651);

    public static final PlanCreateType NEW_HOME_PAGE = new PlanCreateType("新版首页", 660);

    public static final PlanCreateType EVENT_JC_2X1 = new PlanCreateType("jc2x1活动", 700);

    public static final PlanCreateType EVENT_DG_STATIC = new PlanCreateType("jc单关固定奖金活动", 701);
    public static final PlanCreateType EVENT_SUPPORT_JCZQ = new PlanCreateType("助威中国队竞猜足球活动", 702);
    public static final PlanCreateType EVENT_DG_CONTINUOUS = new PlanCreateType("竞彩足球单关连关活动", 703);
    public static final PlanCreateType EVENT_DG_CONTINUOUS_PLUS_AWARD = new PlanCreateType("竞彩足球单关连关活动加奖赛事", 704);



}
